package com.Monica.demo04;


import com.Monica.demo02.UserService;
import com.Monica.demo02.UserServiceImp;

public class Client {
    public static void main(String[] args){
        UserService userService = new UserServiceImp();
        ProxyInvocationHandler pih =  new ProxyInvocationHandler();
        pih.setRent(userService);
        UserService proxy = (UserService)pih.getProxy();
        proxy.query();
    }
}
